package com.kate.mall.member.vo;


import com.kate.mall.common.valid.Sex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/10/9 14:42
 */
@Data
@ApiModel
public class UserForm implements Serializable {
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "姓名不能为空")
    @Size(min = 6,max = 8,message = "姓名长度不规范")
    private String username;/*6到8位*/

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "姓名不能为空")
    @Size(min = 8,max = 8,message = "密码长度不规范")
    private String password;/*8为*/

    @ApiModelProperty(value = "性别")
    @Sex(message = "性别只能是0或1")
    private Integer gender;/*只能是0和1*/
}
